package com.lwq.mall.seckill.dto;

import com.lwq.mall.seckill.vo.SkuInfoVo;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 封装sku相关的信息 保存到redis中的创术对象
 */
@Data
public class SeckillSkuRedisDto {

    /**
     * 商品id
     */
    private Long skuId;
    /**
     * 秒杀价格
     */
    private BigDecimal seckillPrice;
    /**
     * 秒杀总量
     */
    private BigDecimal seckillCount;
    /**
     * 每人限购数量
     */
    private BigDecimal seckillLimit;
    /**
     * 排序
     */
    private Integer seckillSort;

    private SkuInfoVo skuInfoVo;


    private Long startTime;

    private Long endTime;
    /**
     * 随机码
     */
    private String randCode;

    private Long  promotionSessionId;
}
